/*
 * @Description:
 * @version:
 * @Author: 潘骏杰
 * @Date: 2021-11-19 09:54:59
 * @LastEditors: 潘骏杰
 * @LastEditTime: 2022-03-31 11:19:34
 */
export const asyncRouterMap = [
  {
    path: '/',
    component: () => import('@/components/common/Layout.vue'),
    meta: { title: '首页' },
    // redirect: '/dashboard/workplace',
    redirect: '/home',
    children: [
      {
        path: '/home',
        name: 'home',
        component: () => import('@/views/home/Home.vue'),
        hidden: true,
        meta: { title: '家庭医生', permission: ['admin'] }
      },
      {
        path: '/Msg',
        name: 'msg',
        component: () => import('@/views/Msg.vue'),
        hidden: true,
        meta: { title: '消息', permission: ['admin'] }
      },
      {
        path: '/Resident',
        name: 'resident',
        component: () => import('@/views/Resident.vue'),
        hidden: true,
        meta: { title: '居民', permission: ['admin'] }
      },
      {
        path: '/familyDoctorSigning',
        name: 'FamilyDoctorSigning',
        component: () => import('@/views/familyDoctorSigning/index'),
        hidden: true,
        meta: { title: '家医签约', permission: ['admin'] }
      },
      {
        path: '/archivesAdministration',
        name: 'ArchivesAdministration',
        component: () => import('@/views/archivesAdministration/index'),
        hidden: true,
        meta: { title: '档案管理', permission: ['admin'] }
      },
      {
        path: '/appointmentRecord',
        name: 'AppointmentRecord',
        component: () => import('@/views/AppointmentRecord.vue'),
        hidden: true,
        meta: { title: '预约记录', permission: ['admin'] }
      },

      {
        path: '/reviewofsigningapplication',
        name: 'ReviewOfSigningApplication',
        component: () => import('@/views/ReviewOfSigningApplication.vue'),
        hidden: true,
        meta: { title: '签约申请审核', permission: ['admin'] }
      },
      {
        path: '/intentSigning',
        name: 'IntentSigning',
        component: () => import('@/views/IntentSigning.vue'),
        hidden: true,
        meta: { title: '签约意向任务', permission: ['admin'] }
      },
      {
        path: '/detailsOfContractedServices',
        name: 'DetailsOfContractedServices',
        component: () => import('@/views/DetailsOfContractedServices.vue'),
        hidden: true,
        meta: { title: '签约服务详情', permission: ['admin'] }
      },
      {
        path: '/performanceDetails',
        name: 'PerformanceDetails',
        component: () => import('@/views/PerformanceDetails.vue'),
        hidden: true,
        meta: { title: '签约服务履约详情', permission: ['admin'] }
      },
      {
        path: '/chosepackage',
        name: 'ChosePackage',
        component: () => import('@/views/chosePackage/index'),
        hidden: true,
        meta: { title: '选择服务', permission: ['admin'] }
      },
      {
        path: '/followUptask',
        name: 'FollowUptask',
        component: () => import('@/views/followUptask/index.vue'),
        hidden: true,
        meta: { title: '随访任务', permission: ['admin'] }
      },
      {
        path: '/newVisit',
        name: 'NewVisit',
        component: () => import('@/views/NewVisit.vue'),
        hidden: true,
        meta: { title: '新建随访', permission: ['admin'] }
      },
      {
        path: '/detail',
        name: 'Detail',
        component: () => import('@/views/Detail.vue'),
        hidden: true,
        meta: { title: '服务包详情', permission: ['admin'] }
      },
      {
        path: '/agreement',
        name: 'Agreement',
        component: () => import('@/views/Agreement.vue'),
        hidden: true,
        meta: { title: '服务条款', permission: ['admin'] }
      },
      {
        path: '/autograph',
        name: 'Autograph',
        component: () => import('@/views/Autograph.vue'),
        hidden: true,
        meta: { title: '签名', permission: ['admin'] }
      }
    ]
  },
  {
    path: '*',
    redirect: '/home',
    hidden: true
  }
]
